<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var test = function(){
				console.log(test.name);
			}
			console.log(test.name);
			test();
			console.log(typeof a);// undefined
			console.log(a); // 报错
			
			
			var test2 = function a(){
				a(); // 就是递归调用
				console.log(test2.name);
			}
			console.log('-------------------------------');
			console.log(test2.name);
			console.log(typeof a);
			
		</script>
	</body>
</html>
